package presentation;

import java.util.Observable;
import java.util.Observer;

import control.CControl;

public class PNumberValue implements Observer{
	public double value = 0.;

	public PNumberValue(CControl cControl, String register) {
		cControl.addRegisterObserver(register, this);
	}
	@Override
	public void update(Observable obj, Object arg) {
		if (arg instanceof Number) {
			this.value = ((Number) arg).doubleValue();
        }
	}
}
